#!/bin/sh
#
# Copyright (c) 2008 Rudá Moura. All Rights Reserved. 
#

ENVIRON_PLIST="$HOME/.MacOSX/environment.plist"

if [ -f $ENVIRON_PLIST ] ; then
	echo "$0: file '$ENVIRON_PLIST' exist, quitting"
	exit 1
fi

install -d $HOME/.MacOSX
cat >$ENVIRON_PLIST <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>SSH_AUTH_SOCK</key>
	<string>$HOME/.ssh-agent.socket</string>
</dict>
</plist>
EOF
